#pragma once

#include <QWidget>
#include <QOpenGLWidget>
#include "../VDModule/VDModule.h"

class Canvas : public QOpenGLWidget
{
	Q_OBJECT

public:
	Canvas(QWidget *parent = Q_NULLPTR);
	~Canvas();

	virtual bool InitCanvas(int width, int height, uint64_t hwnd = 0) { return false; }

	virtual void Repaint(Frame* frame) {};

	virtual void Set360VR(bool is360) = 0;

protected:

	void mouseDoubleClickEvent(QMouseEvent *event);

	bool is360VR = false;
};
